<template>
  <div class="panel-title flex-between-center">
    <span class="z-sign">
      <span class="font34 font-333 font-weight600">买一送一</span>
      <span class="custom">
        <slot></slot>
      </span>
    </span>
    <span class="font22 font-999">
      查看更多
      <i class="iconfont icon-xiayibu"></i>
    </span>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator';
@Component
export default class TopSearch extends Vue {
  // 轮播图所需要数据
  @Prop() private title!: string;
  /**
   * 点击图片跳转到对应的展示页面
   */
  private chosen(href: string) {
    console.log('href', href);
  }
}
</script>

<style lang="scss" scoped>
.panel-title {
  width: 100%;
  height: 110px;
  line-height: 110px;
  padding: 38px 20px;
  background-color: #fff;
  .z-sign {
    position: relative;
    padding-left: 20px;
    .custom {
      margin-left: 20px;
    }
  }
  .z-sign::after {
    content: "";
    position: absolute;
    left: 0;
    top: 36px;
    width: 10px;
    height: 34px;
    background-color: #2cc38f;
  }
}
</style>
